﻿<UserControl x:Class="WPFExcelReport.DABPOS"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
             Background="White"
             FontSize="16"
        Width="1000">
    <UserControl.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        </UserControl.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" VerticalAlignment="Center">计划数量</TextBlock>
                <TextBlock Grid.Column="1"  Margin="3"  Background="LightGray"  
                                   Text="{Binding Path=ABPSOLLMENGE7, Converter={StaticResource ResourceKey=d100}}"/>
            </Grid>
            <Grid Margin="20,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="60"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" VerticalAlignment="Center">已经接收</TextBlock>
                <TextBlock Grid.Column="1"  Margin="3"  Background="LightGray"  
                                   Text="{Binding Path=ABPEALFM, Converter={StaticResource ResourceKey=d100}}"/>
            </Grid> 
        </WrapPanel>
        <WrapPanel Grid.Row="1">
                <Grid>
                    <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="40"></ColumnDefinition>
                        <ColumnDefinition Width="80"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0">生产单</TextBlock>
                    <TextBox Grid.Column="1"  Margin="3"  Background="White"  
                                   Text="{Binding Path=ABPAUFKRS}"/>
                    <TextBox Grid.Column="2"  Margin="3"  Background="White"  
                                   Text="{Binding Path=ABPAUFLFD}"/>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="40"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0">行号</TextBlock>
                    <TextBox Grid.Column="1"  Margin="3"  Background="White"  
                                   Text="{Binding Path=ABPAUFPOS, Converter={StaticResource ResourceKey=pnum}}"/>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="120"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0">外发厂</TextBlock>
                    <TextBox Grid.Column="1"  Margin="3"  Background="White"  
                                   Text="{Binding Path=ABPLIEFNR}"/>
                </Grid>
                <Grid>
                    <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="200"></ColumnDefinition>
                        <ColumnDefinition Width="200"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0">款号</TextBlock>
                    <TextBox Grid.Column="1"  Margin="3"  Background="White"  
                                   Text="{Binding Path=ABPART}"/>
                    <TextBox Grid.Column="2"  Margin="3"  Background="White"  
                                   Text="{Binding Path=FSABEZ,Converter={StaticResource ResourceKey=gb2312}}"/>
                </Grid>
          
            </WrapPanel>              
        
    </Grid>
</UserControl>
